FROM registry.cn-hangzhou.aliyuncs.com/shenxingping/poseidon-datax:3.4

MAINTAINER shenxingping
EXPOSE 20001
ENV PARAMS=""
ENV JAVA_OPTS=""
ENV LANG C.UTF-8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ADD target/xp-pp-actuator-*.jar /xp-pp-actuator.jar

ENTRYPOINT ["sh","-c","java $JAVA_OPTS -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -jar /xp-pp-actuator.jar $PARAMS"]